#pragma once

#include <Windows.h>

#if defined(__cplusplus)
extern "C" {
#endif

#if defined(CUMULUSDLL_EXPORTS)
#define CUMULUSDLL_API __declspec(dllexport)
#else
#define CUMULUSDLL_API __declspec(dllimport)
#endif

CUMULUSDLL_API void* cm_malloc( size_t size );
CUMULUSDLL_API void cm_free( void * mem );
CUMULUSDLL_API void* cm_realloc( void * mem, size_t size );
CUMULUSDLL_API size_t cm_getusablesize( void* mem );
CUMULUSDLL_API bool cm_isthreadsafe();

#if defined(__cplusplus)
}; /* extern "C" */
#endif